package Day6.ZuoYe.Market;

import java.util.Objects;

//会员
public class Vip {
    private String vipNo;
    private String name;
    private String phone;
    private int jifen;
    private  String mima;

    public Vip() {
    }

    public Vip(String vipNo, String name, String phone, int jifen,String mima) {
        this.vipNo = vipNo;
        this.name = name;
        this.phone = phone;
        this.jifen = jifen;
        this.mima=mima;
    }

    @Override
    public String toString() {
        return vipNo +
                "   " + name +
                "   " + phone +
                "   " + jifen;
    }

    public String getVipNo() {
        return vipNo;
    }

    public void setVipNo(String vipNo) {
        this.vipNo = vipNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getJifen() {
        return jifen;
    }

    public void setJifen(int jifen) {
        this.jifen = jifen;
    }

    public String getMima() {
        return mima;
    }

    public void setMima(String mima) {
        this.mima = mima;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Vip vip = (Vip) o;
        return Objects.equals(vipNo, vip.vipNo);
    }

    @Override
    public int hashCode() {
        return Objects.hash(vipNo);
    }
}
